<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="<?php echo __PUBLIC__?>/Admin/Bootstrap/Css/bootstrap.min.css" />
	<script type="text/javascript" src='Public/jquery-1.8.2.min.js'></script>
	<style type="text/css">
	    .uploadify-button {
	        background-color: transparent;
	        border: none;
	        padding: 0;
	    }
	    .uploadify:hover .uploadify-button {
	        background-color: transparent;
	    }
	</style> 
</head>
<body>
	<div class="container-fluid">
	<div class="row-fluid">
	<div class="span12">

	<form action="" method='post' enctype="multipart/form-data">
		<fieldset>
		<legend>修改商品品牌</legend>
		<table class="table table-bordered table-hover">
			<tr class="info">
				<td>品牌名称</td>
				<td colspan="2">
					<input type="text" name='bname' value="<?php echo $oldData['bname']?>"/>
				</td>
			</tr>
			<tr class="info">
				<td>排序</td>
				<td colspan="2">
					<input type="text" name='bsort' value="<?php echo $oldData['bsort']?>" style="width: 50px;"/>
				</td>
			</tr>
			<tr class="info">
		<script type="text/javascript">
			$(function(){
				
				//点击关闭图片按钮
				$('.close_img').click(function(){
					// 删除图片元素
					var str = '<label for="exampleInputEmail1"></label><input id="exampleInputEmail1" type="file" name="blogo">';
					$('#upload_box').html(str);
				})
			})
		</script>
				<td>品牌LOGO</td>
				<td>
								<!--如果有图的时候-->
			<div class="form-group" id="upload_box">
			<?php if($oldData['blogo']){?>
                
				<img src="<?php echo $oldData['blogo']?>" width="70" height="40"/>
				<a href="javascript:;" class="close_img">X</a>
				<input type="hidden" name="blogo" value="<?php echo $oldData['blogo']?>"/>
			<?php }else{?>
				<label for="exampleInputEmail1"></label><input id="exampleInputEmail1" type="file" name="blogo">
			
               <?php }?>
			</div>
					<div id='logo-wrap' style='display:none'></div>
				</td>
			</tr>
			<tr class="info">
				<td>是否热门</td>
				<td colspan="2">
				<input type="hidden" name="bhot" value="0" />
					<input type="checkbox"  name='bhot' value="1" <?php if($oldData['bhot'] == 1){?>
                checked
               <?php }?>/>
				</td>
			</tr>
			<tr>
				<td colspan='3' align='center'>
					<input type="submit" class="btn btn-primary" value="确定修改" />
					<input type="hidden" name="bid" id="bid" value="<?php echo $oldData['bid']?>" />
				</td>
			</tr>
		</table>
		</fieldset>
	</form>

	</div>
	</div>
	</div>

</body>
</html>